package cn.iocoder.yudao.module.book.controller.app.protocolAndmethod.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 启蒙方法新增/修改 Request VO")
@Data
public class AppMethodsSaveReqVO {

    @Schema(description = "方法id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7112")
    private Integer methodId;

    @Schema(description = "方法内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "方法内容不能为空")
    private String content;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间不能为空")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "更新时间不能为空")
    private LocalDateTime updateTime;

}